package com.bean;

import java.math.BigDecimal;
import java.text.DecimalFormat;

public class Flower {

    private Integer flowerid;//
    private String flower_name;
    private BigDecimal price;//
    private String introduce;//
    private  String flower_photo="flower.jpg";//
    private  Integer fclassid;//
    private String enterpriseid;//
    private Integer sales;//销量
    private Integer stock;//库存
    private FlowerClassify flowerClassify;
    private Enterprise enterprise;


    public Flower() {
    }

    public Integer getFlowerid() {
        return flowerid;
    }

    public void setFlowerid(Integer flowerid) {
        this.flowerid = flowerid;
    }

    public String getFlower_name() {
        return flower_name;
    }

    public void setFlower_name(String flower_name) {
        this.flower_name = flower_name;
    }

    public BigDecimal getPrice() {
        return price;
    }

    public void setPrice(BigDecimal price) {
        this.price = price;
    }

    public String getIntroduce() {
        return introduce;
    }

    public void setIntroduce(String introduce) {
        this.introduce = introduce;
    }

    public String getFlower_photo() {
        return flower_photo;
    }

    public void setFlower_photo(String flower_photo) {
        this.flower_photo = flower_photo;
    }

    public Integer getFclassid() {
        return fclassid;
    }

    public void setFclassid(Integer fclassid) {
        this.fclassid = fclassid;
    }

    public String getEnterpriseid() {
        return enterpriseid;
    }

    public void setEnterpriseid(String enterpriseid) {
        this.enterpriseid = enterpriseid;
    }

    public Integer getSales() {
        return sales;
    }

    public void setSales(Integer sales) {
        this.sales = sales;
    }

    public Integer getStock() {
        return stock;
    }

    public void setStock(Integer stock) {
        this.stock = stock;
    }

    public FlowerClassify getFlowerClassify() {
        return flowerClassify;
    }

    public void setFlowerClassify(FlowerClassify flowerClassify) {
        this.flowerClassify = flowerClassify;
    }

    public Enterprise getEnterprise() {
        return enterprise;
    }

    public void setEnterprise(Enterprise enterprise) {
        this.enterprise = enterprise;
    }

    public Flower(Integer flowerid, String flower_name, BigDecimal price, String introduce, String flower_photo, Integer fclassid, String enterpriseid) {
        this.flowerid = flowerid;
        this.flower_name = flower_name;
        this.price = price;
        this.introduce = introduce;
        if(flower_photo!=null&&!"".equals(flower_photo)){
            this.flower_photo = flower_photo;
        }
        this.fclassid = fclassid;
        this.enterpriseid = enterpriseid;
    }

    public Flower(Integer flowerid, String flower_name, BigDecimal price, String introduce, String flower_photo, Integer fclassid, String enterpriseid, Integer sales, Integer stock) {
        this.flowerid = flowerid;
        this.flower_name = flower_name;
        this.price = price;
        this.introduce = introduce;
        if(flower_photo!=null&&!"".equals(flower_photo)){
            this.flower_photo = flower_photo;
        }
        this.fclassid = fclassid;
        this.enterpriseid = enterpriseid;
        this.sales = sales;
        this.stock = stock;
    }

    public Flower(Integer flowerid, String flower_name, BigDecimal price, String introduce, String flower_photo, Integer fclassid, String enterpriseid, Integer sales, Integer stock, FlowerClassify flowerClassify, Enterprise enterprise) {
        this.flowerid = flowerid;
        this.flower_name = flower_name;
        this.price = price;
        this.introduce = introduce;
        if(flower_photo!=null&&!"".equals(flower_photo)){
            this.flower_photo = flower_photo;
        }
        this.fclassid = fclassid;
        this.enterpriseid = enterpriseid;
        this.sales = sales;
        this.stock = stock;
        this.flowerClassify = flowerClassify;
        this.enterprise = enterprise;
    }

    @Override
    public String toString() {
        return "Flower{" +
                "flowerid=" + flowerid +
                ", flower_name='" + flower_name + '\'' +
                ", price=" + price +
                ", introduce='" + introduce + '\'' +
                ", flower_photo='" + flower_photo + '\'' +
                ", fclassid=" + fclassid +
                ", enterpriseid='" + enterpriseid + '\'' +
                ", sales=" + sales +
                ", stock=" + stock +
                ", flowerClassify=" + flowerClassify +
                ", enterprise=" + enterprise +
                '}';
    }
}
